<?php
$user = $data['user'];
//dump($data);
?>
<!DOCTYPE html>
<html lang="zhcn">
<head>
    <include file="Common/meta" />
    <title>个人信息 - {$_ENV['site'][0]['title']}</title>
    <include file="Common/link" />
    <style>
        .user-photo {
            width: 100px;
            height: 100px;
            border-radius: 5px;
        }
    </style>
</head>
<body>
<header class="layout-header">
    <div class="container">
        <h1 class="title">个人信息</h1>
        <a class="header-back" href="/user/personCenter"><i class="icon icon-left"></i></a>
        <ul class="tool-list">
            <li class="tool-item"><a class="title-right" href="/user/infoUpdate"><i class="icon icon-edit"></i></a></li>
        </ul>
    </div>
</header>
<div class="layout-body">
    <div class="container">
        <section class="person-center-box">
            <ul class="person-msg">
                <li class="person-photo">
                    <label>头像</label>
                    <div class="user-msg"><img class="user-photo" src="{$user['photo']}"></span>
                </li>
                <li>
                    <label>姓名</label>
                    <input id="desc" class="user-msg" value="{$user['name']}" disabled>
                </li>
                <li>
                    <label>性别</label>
                    <span class="user-msg user-sex">
                        <if condition="$user['sex'] eq 0">
                            男
                            <else />
                            女
                        </if>
                    </span>
                </li>
                <li>
                    <label>电话</label>
                    <input class="user-msg" id="phone" value="{$user['phone']}" disabled>
                </li>
                <li>
                    <label>邮箱</label>
                    <input class="user-msg" id="email" value="{$user['email']}" disabled>
                </li>
                <li>
                    <label>密码</label>
                    <input id="password" class="user-msg password" value="已保护" disabled>
                </li>
                <li>
                    <label>地区</label>
                    <input id="area" class="user-msg" value="{$user['area']}" disabled>
                </li>
            </ul>
            <ul class="person-msg person-msg2">
                <li>
                    <label>学校</label>
                    <input id="school" class="user-msg" value="{$user['school']}" disabled>
                </li>
                <li>
                    <label>专业</label>
                    <input id="professional" class="user-msg"  value="{$user['professional']}" disabled/>
                </li>
                <li>
                    <label>学历</label>
                    <input id="education" class="user-msg"  value="{$user['education']}" disabled>
                </li>
                <li>
                    <label>自我描述</label>
                    <div>
                        <p id="desc" class="user-msg user-desc">{$user['desc']}</p>
                    </div>
                </li>
            </ul>
        </section>
    </div>
</div>
<include file="Common/script" />
</body>
</html>

